From ae453991b5f30db783f931bcfa4c80e54be7ac18 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 23 Feb 2017 10:30:49 -0800 Subject: [PATCH] Document that OUT_DIR is set during compilation for packages with build scripts --- src/doc/environment-variables.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/environment-variables.md b/src/doc/environment-variables.md index 01ed64b22..7cb67b6c1 100644 --- a/src/doc/environment-variables.md +++ b/src/doc/environment-variables.md @@ -49,6 +49,8 @@ let version = env!("CARGO_PKG_VERSION"); * `CARGO_PKG_NAME` - The name of your package. * `CARGO_PKG_DESCRIPTION` - The description of your package. * `CARGO_PKG_HOMEPAGE` - The home page of your package. +* `OUT_DIR` - If the package has a build script, this is set to the folder where the build + script should place its output. See below for more information. # Environment variables Cargo sets for build scripts -- 2.30.2